package com.ys.entity.storage;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_LocationTransferItem", catalog="Id")
public class TccLocationTransferItem extends BaseEntity<TccLocationTransferItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="StockControlBeforeId", nameJava="stockControlBeforeId", typeDataBase="bigint")
	private Long stockControlBeforeId;
	@YsField(nameDataBase="StockControlAfterId", nameJava="stockControlAfterId", typeDataBase="bigint")
	private Long stockControlAfterId;
	@YsField(nameDataBase="TransferNum", nameJava="transferNum", typeDataBase="int")
	private Integer transferNum;
	@YsField(nameDataBase="Chw", nameJava="chw", typeDataBase="varchar")
	private String chw;
	@YsField(nameDataBase="AssembleBid", nameJava="assembleBid", typeDataBase="varchar")
	private String assembleBid;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccLocationTransferItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public TccLocationTransferItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public Long getStockControlBeforeId() {
		return stockControlBeforeId;
	}
	public TccLocationTransferItem setStockControlBeforeId(Long stockControlBeforeId) {
		this.stockControlBeforeId = stockControlBeforeId;
		return this;
	}
	public Long getStockControlAfterId() {
		return stockControlAfterId;
	}
	public TccLocationTransferItem setStockControlAfterId(Long stockControlAfterId) {
		this.stockControlAfterId = stockControlAfterId;
		return this;
	}
	public Integer getTransferNum() {
		return transferNum;
	}
	public TccLocationTransferItem setTransferNum(Integer transferNum) {
		this.transferNum = transferNum;
		return this;
	}
	public String getChw() {
		return chw;
	}
	public TccLocationTransferItem setChw(String chw) {
		this.chw = chw;
		return this;
	}
	public String getAssembleBid() {
		return assembleBid;
	}
	public TccLocationTransferItem setAssembleBid(String assembleBid) {
		this.assembleBid = assembleBid;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccLocationTransferItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccLocationTransferItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccLocationTransferItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccLocationTransferItem tccLocationTransferItem(
		String pbid,
		Long stockControlBeforeId,
		Long stockControlAfterId,
		Integer transferNum,
		String chw,
		String assembleBid,
		Integer status
			) {
		TccLocationTransferItem entity = new TccLocationTransferItem();
		entity.setPbid(pbid);
		entity.setStockControlBeforeId(stockControlBeforeId);
		entity.setStockControlAfterId(stockControlAfterId);
		entity.setTransferNum(transferNum);
		entity.setChw(chw);
		entity.setAssembleBid(assembleBid);
		entity.setStatus(status);
		return entity;
	}
}